package com.ljl.mvvmdemo.db.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.ljl.mvvmdemo.db.entity.PosMachine

@Dao
interface PosMachineDao {

    @Insert
    suspend fun savePosMachineList(posMachineList: List<PosMachine>)

    @Query("select * from PosMachine where pos_machine_terminal_id = :terminalId")
    suspend fun getPosMachine(terminalId: String): PosMachine?

}